<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * @author Меркулов Илья aka Bit0reZ
 * @license GNU GPLv3
 */

class Example extends CI_Controller {
	
	var $env = ENVIRONMENT;
	var $base_url;
	var $benchmark = true;

	function __construct()
	{
		parent::__construct();
                $this->load->library('parser');
                $this->load->library('session');
                $this->base_url = base_url();
	}

	function index()
	{
                if($this->env == 'development') $this->output->enable_profiler($this->benchmark);
                $dt['base_url'] = @$data['base_url'] = base_url();
		
                $this->parser->parse('templates/example.html', $dt);
	}
	
}

/* End of file example.php */
/* Location: ./application/controllers/welcome.php */
